b2bsoft-ux
TMF-687 [IF-009a-Stock Increment] POST-stockIncrements
This operation helps in incrementing/decrementing of stock from store to inventory.
URL
http://[localhost]:[port]/b2bsoft-ux/v1/{businessId}/stockIncrements
url Param
name | type | description | required |
---|---|---|---|
businessId | string | 2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit. Expected one is "PR"-Puerto Rico | Y |
Header
name | type | description | required |
---|---|---|---|
client_id | string | The client_id identifying the channel. | Y |
client_secret | string | Password associated with the client_id. | Y |
X-Correlation-ID | string | An identifier for the current call chain that can be used to tie together log entries on multiple layers (e.g. client, server, mainframe). This identifier must be designed to be unique across all applications. | Y |
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/b2bsoft-ux/b2bsoft-ux/v1/PR/stockIncrements' \
--header 'client_id: 12324567' \
--header 'client_secret: abcdefg' \
--header 'X-Correlation-ID: yuhgtr-fdewsacb-jndjndlkj-cndkjnjvn' \
--header 'Content-Type: application/json' \
--data '{
"header": {
"postingDate": "20230602",
"docDate": "20230602",
"freeText": "LCPRFREETEXT",
"docNumber": "1028",
"action": "stockIncrementB2BSOFT",
"GMCode": "06"
},
"goodsMovementsItems": [
{
"SKU": "117076",
"storeId": "13PR",
"storeIdDestination": "48PR",
"location": "0002",
"movementType": "963",
"entryQuantity": 1.0,
"reserveNo": "Mock",
"reserveItem": "Mock",
"sequenceNo": "0001",
"serialNo": [
"10322260"
]
}
]
}'
Definitions
Each of the request parameters is detailed.
name | type | description | required |
---|---|---|---|
header.postingDate | string | Posting Date. should be in yyyymmdd format | Y |
header.docDate | string | Document Date. should be in yyyymmdd format | Y |
header.freeText | string | Description Text | Y |
header.docNumber | string | Document Number | Y |
header.action | string | Determines the functionality that is being performed | Y |
header.GMCode | string | Good Movement Code | Y |
goodsMovementsItems.SKU | string | Store Keeping Unit number / Material Number / Product number | Y |
goodsMovementsItems.storeId | string | Origin Store ID | Y |
goodsMovementsItems.storeIdDestination | string | Destination Store ID | Y |
goodsMovementsItems.location | string | Plant location | Y |
goodsMovementsItems.movementType | string | Movement type i.e. increment or decrement | Y |
goodsMovementsItems.entryQuantity | Number | Item Entry Quantity | Y |
goodsMovementsItems.reserveNo | string | reserve No | Y |
goodsMovementsItems.reserveItem | string | reserve Item | Y |
goodsMovementsItems.sequenceNo | string | Material Sequence number | Y |
goodsMovementsItems.serialNo | array | Serial number of the SKU | Y |
Response
[ 201 ]
Created - POST request processed successfully.
{
"matDocYear": 2022,
"matDoc": "4900001902"
}
Definitions
name | type | description | required |
---|---|---|---|
matDocYear | Number | Document posted Year | Y |
matDoc | string | Document number from backend system | Y |